package com.chinaunicom.bigcustomer.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chinaunicom.bigcustomer.dao.GradeMapper;
import com.chinaunicom.bigcustomer.model.Grade;
import com.chinaunicom.bigcustomer.service.IGradeService;
@Service
public class GradeServiceImpl implements IGradeService {

	@Resource
	private GradeMapper dao;
	
	@Override
	public int deleteByPrimaryKey(Integer nGradeid) {
		// TODO Auto-generated method stub
		return dao.deleteByPrimaryKey(nGradeid);
	}

	@Override
	public int insert(Grade record) {
		// TODO Auto-generated method stub
		return dao.insert(record);
	}

	@Override
	public int insertSelective(Grade record) {
		// TODO Auto-generated method stub
		return dao.insertSelective(record);
	}

	@Override
	public List<Grade> selectByPrimaryKey(Integer nGradeid) {
		// TODO Auto-generated method stub
		return dao.selectByPrimaryKey(nGradeid);
	}

	@Override
	public int updateByPrimaryKeySelective(Grade record) {
		// TODO Auto-generated method stub
		return dao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Grade record) {
		// TODO Auto-generated method stub
		return updateByPrimaryKey(record);
	}

}
